var _n78;
var cc__extends = __extends;
var cc__decorate = __decorate;
var cc__importDefault = __importDefault;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $1$EventManager = require("EventManager");
var s = cc__importDefault($1$EventManager);
var $GameEventType = require("GameEventType");
var $zqcc_OverallSystem = require("zqcc_OverallSystem");
var $1$zqcc_pageBase = require("zqcc_pageBase");
var u = cc__importDefault($1$zqcc_pageBase);
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
cc__decorator.property;
var def_tianjiazhuomian = function (t) {
  function _ctor() {
    return null !== t && t.apply(this, arguments) || this;
  }
  cc__extends(_ctor, t);
  _ctor.prototype.onLoad = function () { };
  _ctor.prototype.start = function () { };
  _ctor.prototype.queding = function () {
    const context = this; // 使用常量代替 var，提升可读性

    // 添加桌面快捷方式
    window.tt.addShortcut({
      success() {
        cc.log("添加桌面成功"); // 记录成功日志
        s.default.emit($GameEventType.EventType.DirectorEvent.showCheck); // 触发显示检查事件
        $zqcc_OverallSystem.sers().uiSrv.showMessage("添加桌面成功"); // 显示成功消息
        context.OnBtnClose(); // 关闭按钮
      },
      fail(error) {
        cc.log("添加桌面失败", error.errMsg); // 记录失败日志
        $zqcc_OverallSystem.sers().uiSrv.showMessage("添加桌面失败"); // 显示失败消息
      }
    });
  };
  return cc__decorate([ccp_ccclass], _ctor);
}(u.default);
exports.default = def_tianjiazhuomian;